﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LuDragon.Common.Attributes
{
    public class KeyValueAttribute : Attribute
    {
        /// <summary>
        /// 键
        /// </summary>
        public object Key { get; set; }

        /// <summary>
        /// 值
        /// </summary>
        public string Value { get; set; }

        /// <summary>
        /// 枚举键值特性
        /// </summary>
        /// <param name="key">键</param>
        /// <param name="value">值</param>
        public KeyValueAttribute(object key, string value)
        {
            Key = key;
            Value = value;
        }
    }
}
